<?php
/**
 * @package		简易CMS
 * @subpackage	计划任务：清除过期的通知
 * @version		$Id: cron_cleannotification.php 8 2012-06-07 12:37:35Z htmambo@gmail.com $
 * @author		Hoping
 * @copyright	Copyright (C) 2009 - 2010 Hoping Software Studio. All rights reserved.
 */

if(!defined('IN_JYCMS')) {
	exit('Access Denied');
}

$deltime = $_G['timestamp'] - 2*3600*24;
DB::query("DELETE FROM #__common_notification WHERE dateline < '$deltime' AND new='0'");

DB::query("OPTIMIZE TABLE #__common_notification", 'SILENT');
